public class LOutChannel extends LExport
| Constructor and Description |
|---|
LOutChannel(java.io.File f) |
LOutChannel(java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Flushes buffer and closes output stream.
|
void |
closeLength()
Used in conjunction with markLength(int).
|
void |
fillPosMarker()
Used in conjunction with setPosMarker(int).
|
void |
markLength(int size)
A stack-based system where you can declare an amount of bytes to represent the length of some upcoming data.
|
void |
openOutput(java.lang.String path) |
long |
pos() |
void |
pos(long set) |
void |
setPosMarker(int size)
A queue-based system where you can declare an amount of bytes to represent the position of some upcoming data.
|
void |
write(byte b) |
void |
write(byte[] array)
Writes a byte array to the file.
|
public LOutChannel(java.lang.String path)
throws java.io.FileNotFoundException
path - Path to open a channel to.java.io.FileNotFoundExceptionpublic LOutChannel(java.io.File f)
throws java.io.FileNotFoundException
f - File to open a channel to.java.io.FileNotFoundExceptionpublic void openOutput(java.lang.String path)
throws java.io.FileNotFoundException
openOutput in class LExportpath - Path to open a channel to.java.io.FileNotFoundExceptionpublic void write(byte[] array)
throws java.io.IOException
LExportpublic void write(byte b)
throws java.io.IOException
public void close()
throws java.io.IOException
LExportpublic void markLength(int size)
throws java.io.IOException
size - Number of bytes to write/reserve for the length information.java.io.IOExceptionpublic void closeLength()
throws java.io.IOException
java.io.IOExceptionpublic void setPosMarker(int size)
throws java.io.IOException
size - Number of bytes to write/reserve for the position information.java.io.IOExceptionpublic void fillPosMarker()
throws java.io.IOException
java.io.IOExceptionpublic void pos(long set)
throws java.io.IOException
set - java.io.IOExceptionpublic long pos()
throws java.io.IOException
java.io.IOException